package com.cpp.pojo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long creatorId;
    //用户名，唯一
    private String username;
    //真实姓名，不唯一
    private String realName;
    private String password;
    //性别（1:男, 2:女)
    private String sex;
    // 头像
    private String imageUrl;
    //角色0管理端,1教师端,2学生端
    private String role;
    private LocalDateTime  createTime;
    private LocalDateTime  updateTime;
}
